package com.hr.dept.service.Impl;

import java.util.List;

import com.hr.dept.dao.Impl.DeptUserRelationshipDaoImpl;
import com.hr.dept.domain.Dept;
import com.hr.dept.domain.DeptUser;
import com.hr.dept.service.DeptUserRelationshipService;
import com.hr.user.domain.User;
import com.hr.utils.PageBean;

public class DeptUserRelationshipServiceImpl implements
		DeptUserRelationshipService {
	private DeptUserRelationshipDaoImpl deptUserRelationshipDaoImpl = new DeptUserRelationshipDaoImpl();
	@Override
	public List<User> findBydeptID(String dept_id) {
		// TODO Auto-generated method stub
		return deptUserRelationshipDaoImpl.findBydeptID(dept_id);
	}
	@Override
	public PageBean<User> queryAll_Page_Dept_User(int PageCurrent, int PageSize, String dept_id) {
		// TODO Auto-generated method stub
		return deptUserRelationshipDaoImpl.queryAll_Page(PageCurrent, PageSize, dept_id);
	}
	@Override
	public void changeDeptUser(String user_id, String dept_id_before,
			String dept_id_after, String describle) {
		// TODO Auto-generated method stub
		deptUserRelationshipDaoImpl.updateDeptUser(user_id, dept_id_before, dept_id_after, describle);
	}
	@Override
	public PageBean<DeptUser> queryAll_change_record(int pageCurrent,int pageSize) {
		// TODO Auto-generated method stub
		return deptUserRelationshipDaoImpl.queryAll_change_record(pageCurrent,pageSize);
	}
	@Override
	public PageBean<DeptUser> queryAll_change_record_ByDeptID(int pageCurrent,
			int pageSize, String dept_id) {
		// TODO Auto-generated method stub
		return deptUserRelationshipDaoImpl.queryAll_change_record_ByDeptID(pageCurrent,pageSize,dept_id);
	}
	@Override
	public PageBean<DeptUser> queryAll_change_record_ByUserID(int pageCurrent, int pageSize, String user_id) {
		// TODO Auto-generated method stub
		return deptUserRelationshipDaoImpl.queryAll_change_record_ByUserID(pageCurrent,pageSize,user_id);
	}
}
